<template>
	<view class="catalogue">
		<view class="head">导航</view>

		<view class="menu">
			<view class="item" v-for="(item, index) in list" :key="index" @click="toDetails(item.url)">
				{{ item.name }}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: "首页",
						url: "/pages/home/index",
					},
					{
						name: "订单列表",
						url: "/pages/order/order",
					},
					{
						name: "下载签证",
						url: "/pages/downloadVisa/index",
					},
					{
						name: "开始处理",
						url: "/pages/startProcess/index",
					},
					{
						name: "首页",
						url: "/pages/palmTop/index",
					},
					{
						name: "掌上签证Green",
						url: "/pages/palmTopGreen/index",
					}
				],
			};
		},
		
		methods: {
			toDetails(url) {
				uni.navigateTo({
					url: url,
				});
			},
		},
	};
</script>

<style lang="scss" scoped>
	.head {
		font-size: 45rpx;
		height: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		border-bottom: 1px solid #000;
	}

	.menu {
		.item {
			font-size: 36rpx;
			height: 100rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			border-bottom: 1px solid #000;
		}
	}
</style>